package com.trg.designmodel.bridge;

import com.trg.designmodel.bridge.service.Phone;
import com.trg.designmodel.bridge.service.impl.AppleBrand;
import com.trg.designmodel.bridge.service.impl.SlidePhoe;
import com.trg.designmodel.bridge.service.impl.XiaoMiBrand;

/**
 * @ClassName: Client
 * @Description:
 * @Author: tangrg
 * @Date: 2021/7/5 15:20
 * @Version: 1.0
 * @Return:
 **/
public class Client {

    public static void main(String[] args) {
        Phone phone = new SlidePhoe(new XiaoMiBrand());
        phone.call();
        phone.send();

        System.out.println("_____________________");
        Phone phone1 = new SlidePhoe(new AppleBrand());
        phone1.call();
        phone1.send();
    }
}
